package com.tianpengtech.front.mobile.moneylog;

import com.tianpengtech.common.model.user.User;
import com.tianpengtech.front.mobile.common.util.R;
import com.tianpengtech.front.mobile.common.util.UserUtil;
import com.tianpengtech.front.web.common.controller.BaseController;

/**
 * Created by ggd on 2017/8/5 0005.
 */
public class MobileMoneyLogController extends BaseController {
    private static MobileMoenyLogService service = MobileMoenyLogService.me;
    /**
     * 获取金钱日志
     */
    public void index(){
        int pageNum = getParaToInt("pageNum",1);
        int pageSize = getParaToInt("pageSize",10);
        User user= UserUtil.getCurrentUser(getPara("token"),"ios");
        long uid=user.getLong(User.ID);
        R r=service.list(pageNum,pageSize,uid);
        renderJson(r);
    }

}
